package router

import (
	"github.com/gin-gonic/gin"
	"wxcloudrun-golang/controllers"
)

func Routers(r *gin.Engine) {

	userGroup := r.Group("/user")
	{
		// 用户登录路由
		userGroup.POST("/user/login", controllers.UserController{}.Login)
	}
	ossGroup := r.Group("/oss")
	{
		ossGroup.POST("/", controllers.OssController{}.OSSStorage)
	}
}
